import 'package:flutter/material.dart';

class CustomFontStyle {
  CustomFontStyle._();

  ///默认字体格式
  static TextStyle defaultStyle({
    double size = 14,
    Color color = const Color(0XFF333333),
    FontWeight fontWeight = FontWeight.w500,
  }) {
    return TextStyle(
      fontSize: size,
      color: color,
      fontWeight: fontWeight,
    );
  }

  ///提示字体格式
  static TextStyle hintStyle({
    double size = 14,
    Color color = const Color(0XFF999999),
    FontWeight fontWeight = FontWeight.w400,
  }) {
    return TextStyle(
      fontSize: size,
      color: color,
      fontWeight: fontWeight,
    );
  }

  ///标题字体格式
  static TextStyle titleStyle({
    double size = 20,
    Color color = const Color(0XFF333333),
    FontWeight fontWeight = FontWeight.w500,
  }) {
    return TextStyle(
      fontSize: size,
      color: color,
      fontWeight: fontWeight,
    );
  }
}
